/**
 * Baby Tap Mobile App
 * 幼儿园卡片学习应用 - 手机版本
 */

import React from 'react';
import { StatusBar } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import MainScreen from './src/screens/MainScreen';
import AddCardScreen from './src/screens/AddCardScreen';
import ServerInfoScreen from './src/screens/ServerInfoScreen';

import { ActionSheetProvider } from '@expo/react-native-action-sheet';

const Stack = createNativeStackNavigator();

function App() {
  return (
    <ActionSheetProvider>
      <NavigationContainer>
        <StatusBar barStyle="light-content" backgroundColor="#4a90e2" />
        <Stack.Navigator initialRouteName="Main">
          <Stack.Screen name="Main" component={MainScreen} options={{ title: '宝宝点读卡' }} />
          <Stack.Screen name="AddCard" component={AddCardScreen} options={{ title: '添加卡片' }} />
          <Stack.Screen name="ServerInfo" component={ServerInfoScreen} options={{ title: '服务器信息' }} />

        </Stack.Navigator>
      </NavigationContainer>
    </ActionSheetProvider>
  );
}

export default App;
